<?php



        $linkBD = mysql_connect("localhost","root","");
        mysql_select_db("personalizatuweb", $linkBD);

		$consultaSQL1 = "DELETE FROM elementos WHERE ID_PAGINA='".$_GET['page']."'";
		mysql_query($consultaSQL1, $linkBD) or die(mysql_error());
		
		$consultaSQL2 = "DELETE FROM pagina WHERE ID_PAGINA='".$_GET['page']."'"; 
		mysql_query($consultaSQL2, $linkBD) or die(mysql_error());
	 	mysql_close($linkBD);
	  	header ("Location: index.php?id=".$_GET['site']."");


?>